import Vue from 'vue';
import IconSvg from '@/components/IconSvg/IconSvg.vue';

// 全局注册icon-svg
Vue.component('icon-svg', IconSvg);


// requires and returns all modules that match
const requireAll = requireContext => requireContext.keys().map(requireContext);
// import all svg
const req = require.context('./svg', true, /\.svg$/);
requireAll(req);
